package Song.Han.Demo02;

import org.ietf.jgss.GSSName;

public class Demo04GenericInterface {

    public static void main(String[] args) {
        GenericInterfaceImpl1 gi1 = new GenericInterfaceImpl1();
        gi1.method("只能是字符串");
        //gi1.method(1);

        GenericInterfaceImpl2 gi2 = new GenericInterfaceImpl2();
        gi2.method("字符串");
        gi2.method(1);
    }
}
